package demo.using;

import demo.utils.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.*;

/**
 * @author : GuoFei
 * @date : 2018/12/26 10:54
 */
public class TempRun {

   static Logger logger = LoggerFactory.getLogger(TempRun.class);

   public static void main(String[] args) {
      String dayStr = "2018-12-10";
      Date date = DateUtil.formatDateTime(dayStr, DateUtil.PATTERN_yyyy_MM_dd);
      List<Date> dates = new ArrayList<>();
      for (int i = 0; i < 40; i++) {
         date = DateUtil.addDays(date,1);
         dates.add(date);
      }
      dates.forEach(s->System.out.println("\""+DateUtil.formatDateTime(s,DateUtil.PATTERN_yyyy_MM_dd)+"\","));

   }


}
